# score =int(input("请输入你的成绩："))
# if score >= 90:
#     print("优")
# elif(90 > score >=80):
#     print("良")
# elif(80 > score >= 70):
#     print("中")
# elif(70 > score >= 60):
#     print("及格")
# else:
#     print("不及格")


# ticket = int(input("请输入你的车票："))  # 输入任意值表示有车票/0表示无车票
# if ticket:
#     print("有车票")
#     dao = int(input("请输入刀的长度："))
#     if dao <= 20:
#         print("安检通过!")
#     else:
#         print("安检未通过！")
# else:
#     print("请购买车票！")

# 随机数 random
import random

# num = random.randint(10, 20)
# print(num)

# 猜拳游戏
# 1====剪刀 2====石头 3====布
# zw = {1: "剪刀", 2: "石头", 3: "布"}
#
# while True:
#     player = int(input("请输入出拳的数字（1/2/3）:"))
#     compete = int(random.randint(1, 3))
#     print(f"你出{zw[player]}，电脑出{zw[compete]}")
# if (player == 1 and compete == 3) or (player == 2 and compete == 1) or (player == 3 and compete == 2):
#     print("您赢了")
# elif player == compete:
#     print("平局")
# else:
#     print("您输了")


num = 0
result = 0
while num <= 100:
    result = num + result
    num = num + 1
    if num <= 100:
        print(f"100的累加和为·{result}")
